import request from '@/router/axios'

// 新建关键词
export function addKeyword(obj) {
	return request({
		url: '/cp/keywordmanagment',
		method: 'post',
		data: obj
	})
}

//修改关键词
export function updateKeyword(obj) {
	return request({
		url: '/cp/keywordmanagment',
		method: 'put',
		data: obj
	})
}

//分页查询关键词列表
export function keywordList(query) {
	return request({
		url: '/cp/keywordmanagment/pageQuery',
		method: 'get',
		params: query
	})
}

//删除关键词
export function deleteKeyword(id) {
	return request({
		url: '/cp/keywordmanagment/'+id,
		method: 'delete',
	})
}
